package factory.fromKanYun.OrdinaryFactory;

import factory.fromKanYun.Sender;

public class Test {
    public static void main(String[] args) {
        // 创建工厂
        SendFactory sendFactory = new SendFactory();
        // 生产产品
        Sender sender = sendFactory.produceSender("email");
        // 发货
        sender.send();

        sender = sendFactory.produceSender("sms");
        sender.send();

        sender = sendFactory.produceSender("qq");
        sender.send();
    }
}
